// #pragma once
#include<iostream>
#include<sys/types.h>
#include<sys/stat.h>
#include<cassert>
#include<fcntl.h>
#include<unistd.h>
#include<cstring>

//文件路径
#define namepipe_path "./mypipe"
#define read_max 1024
#define write_max 1024

//创建一个命名管道
void create_namepipe(const char* path)
{
    umask(0);
    int n = mkfifo(path, 0600);
}